import { WeaTools } from 'ecCom';

export const getBaseData = params => {
  return WeaTools.callApi('/api/fullsearch/base/getBaseData', 'POST', params);
};

export const saveSearchSet = params => {
  return WeaTools.callApi('/api/fullsearch/base/saveSearchSet', 'POST', params);
};

export const doSearch = params => {
  return WeaTools.callApi('/api/fullsearch/base/doSearch', 'POST', params);
};

export const getAssociate = params => {
  return WeaTools.callApi('/api/fullsearch/base/getAssociate', 'POST', params);
};

export const collectUserData = params => {
  return WeaTools.callApi('/api/fullsearch/base/collectUserData', 'POST', params);
};

//是否显示微搜结果提交按钮
export const showSubmit = params => {
  return WeaTools.callApi('/api/fullsearch/serveset/showSubmit', 'POST', params);
};

//微搜结果提交
export const submitResult = params => {
  return WeaTools.callApi('/api/fullsearch/serveset/submitResult', 'POST', params);
};

// 常用条件设置 
export const getConditionSetTable = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getList', 'POST', params);
};
